package javaapplication1.view;

import java.util.List;

import javaapplication1.model.Pet;
import javaapplication1.dao.PetDao;
import javaapplication1.dao.oracleImpl.PetDaoOracleImpl;

public class ShowPetView {

	private static PetDao petDao = new PetDaoOracleImpl();

	public static void showPet() {
		List<Pet> petList = petDao.retrievePetAll();
		System.out.println("******************************");
		System.out.println("宠物列表");
		for (int i = 0; i < petList.size(); i++) {
			System.out.println("第" + (i + 1) + "个宠物，名字叫："
					+ petList.get(i).getName());
		}
		System.out.println("******************************");
	}

}